package Demo25;

import javax.crypto.spec.PSource;
//用户类；
public class User {
    private  String name;//姓名
    private  int money;//当前账户余额。

    public User() {
    }

    public User(String name, int money) {
        this.name = name;
        this.money = money;
    }

    //显示当前账户余额；
    public void  show(){
        System.out.println("我叫："+name+"\t我有多少钱："+money);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
